<?php
namespace app\index\controller;

use think\Controller;
use think\View;

class Base extends controller
{   
	protected $user_id;
    
    public  function __construct(){
        if($session_id = input('session_id')){
            if(!$this->user_id = db('user')->where('session_id',$session_id)->value('id')){
            	$data['status'] = 'error';
            	echo json_encode($data);
            	exit();
            }
        }
    }


}
